package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 应急事件上报对象 emergency_report
 *
 * @author ruoyi
 * @date 2025-10-24
 */
public class EmergencyReport extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 功能主键 */
    private String id;

    /** 公司编号 */
    private String devid;

    /** $column.columnComment */
    private String devname;

    /** 应急事件标题 */
    @Excel(name = "应急事件标题")
    private String emergencyTitle;

    /** 上报人 */
    @Excel(name = "上报人")
    private String userName;

    /** 上报时间 */
    @Excel(name = "上报时间")
    private String reportTime;

    /** 上报描述 */
    @Excel(name = "上报描述")
    private String description;

    /** 位置描述 */
    @Excel(name = "位置描述")
    private String location;

    /** 最新检查图片 */
    private String reportPic;

    /** 视频 */
    private String reportVideo;

    /** 坐标经度 */
    private String longitude;

    /** 坐标纬度 */
    private String dimension;

    /** 应急事件状态（1已处理,0未处理） */
    @Excel(name = "应急事件状态", readConverterExp = "1=已处理,0未处理")
    private Integer emergencyState;

    /** 处理意见 */
    @Excel(name = "处理意见")
    private String opinion;

    /** 版本（乐观锁） */
    private Long version;

    /** 用户编号 */
    private String userId;

    /** 项目编号 */
    private String projectId;

    /** 设备安装数量 */
    private Integer installedNumber;

    public void setId(String id)
    {
        this.id = id;
    }

    public String getId()
    {
        return id;
    }
    public void setDevid(String devid)
    {
        this.devid = devid;
    }

    public String getDevid()
    {
        return devid;
    }
    public void setDevname(String devname)
    {
        this.devname = devname;
    }

    public String getDevname()
    {
        return devname;
    }
    public void setEmergencyTitle(String emergencyTitle)
    {
        this.emergencyTitle = emergencyTitle;
    }

    public String getEmergencyTitle()
    {
        return emergencyTitle;
    }
    public void setUserName(String userName)
    {
        this.userName = userName;
    }

    public String getUserName()
    {
        return userName;
    }
    public void setReportTime(String reportTime)
    {
        this.reportTime = reportTime;
    }

    public String getReportTime()
    {
        return reportTime;
    }
    public void setDescription(String description)
    {
        this.description = description;
    }

    public String getDescription()
    {
        return description;
    }
    public void setLocation(String location)
    {
        this.location = location;
    }

    public String getLocation()
    {
        return location;
    }
    public void setReportPic(String reportPic)
    {
        this.reportPic = reportPic;
    }

    public String getReportPic()
    {
        return reportPic;
    }
    public void setReportVideo(String reportVideo)
    {
        this.reportVideo = reportVideo;
    }

    public String getReportVideo()
    {
        return reportVideo;
    }
    public void setLongitude(String longitude)
    {
        this.longitude = longitude;
    }

    public String getLongitude()
    {
        return longitude;
    }
    public void setDimension(String dimension)
    {
        this.dimension = dimension;
    }

    public String getDimension()
    {
        return dimension;
    }
    public void setEmergencyState(Integer emergencyState)
    {
        this.emergencyState = emergencyState;
    }

    public Integer getEmergencyState()
    {
        return emergencyState;
    }
    public void setOpinion(String opinion)
    {
        this.opinion = opinion;
    }

    public String getOpinion()
    {
        return opinion;
    }
    public void setVersion(Long version)
    {
        this.version = version;
    }

    public Long getVersion()
    {
        return version;
    }
    public void setUserId(String userId)
    {
        this.userId = userId;
    }

    public String getUserId()
    {
        return userId;
    }
    public void setProjectId(String projectId)
    {
        this.projectId = projectId;
    }

    public String getProjectId()
    {
        return projectId;
    }
    public void setInstalledNumber(Integer installedNumber)
    {
        this.installedNumber = installedNumber;
    }

    public Integer getInstalledNumber()
    {
        return installedNumber;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("devid", getDevid())
            .append("devname", getDevname())
            .append("emergencyTitle", getEmergencyTitle())
            .append("userName", getUserName())
            .append("reportTime", getReportTime())
            .append("description", getDescription())
            .append("location", getLocation())
            .append("reportPic", getReportPic())
            .append("reportVideo", getReportVideo())
            .append("longitude", getLongitude())
            .append("dimension", getDimension())
            .append("emergencyState", getEmergencyState())
            .append("opinion", getOpinion())
            .append("version", getVersion())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("userId", getUserId())
            .append("projectId", getProjectId())
            .append("installedNumber", getInstalledNumber())
            .toString();
    }
}
